@import "./define.less";
* {
	font-family: "Microsoft YaHei", "Arial", "黑体", "宋体", sans-serif;
}
.error-tip {
	color: #fff;
	background: @error;
}
.success-tip {
	color: #fff;
	background: @success;
}
/* color */
.primary {
	color: @primary;
}
.white {
	color: #fff;
}
.black {
	color: #000;
}
.blue {
	color: @blue;
}
.green {
	color: @green;
}
.gray {
	color: @gray;
}
// 基础样式
html {
	overflow-y: auto;
}
body {
	margin: 0;
}
.van-icon,
button {
	cursor: pointer;
	outline: none;
}
* {
	outline: none;
}
a {
	text-decoration: none;
	cursor: pointer;
}
small {
	color: #bbb;
}
pre {
	white-space: pre-wrap;
}
table {
	border-collapse: collapse;
	th,
	td {
		padding: 3px;
	}
}
/* 常用组件 */
.clk {
	cursor: pointer;
}
.btn {
	.magic-color(@blue, #333);
}
.dense {
	line-height: 1em;
}
.form-dialog {
	margin: 0 auto;
	background: #fff;
	padding: 1rem;
	.depth;
}
.sized {
	display: inline-block;
}
.fl-block {
	overflow: hidden;
	> div {
		float: left;
	}
}
.corner-right {
	position: absolute;
	top: 0;
	right: 0;
	background: #f0d;
	color: #fff;
	transform: rotate(45deg);
	transform-origin: top center;
	width: 4em;
	padding-top: 0.5em;
	text-align: center;
	right: -2em;
}
/* 常用样式 */
input.underline {
	border-bottom: 1px solid #888;
}
.uppercase {
	text-transform: uppercase;
}
.lowercase {
	text-transform: lowercase;
}
.relative {
	position: relative;
	overflow: hidden;
}
.pt-2 {
	padding-top: 0.2rem;
}
.flex-center {
	display: flex;
	align-items: center;
}
.depth-1 {
	.depth;
}
.scroll-x::-webkit-scrollbar,
.scroll-y::-webkit-scrollbar,
.scroll::-webkit-scrollbar {
	width: 0.25rem;
	height: 0.188rem;
}
.scroll-x::-webkit-scrollbar-thumb,
.scroll-y::-webkit-scrollbar-thumb,
.scroll::-webkit-scrollbar-thumb {
	border-radius: 0.313rem;
	box-shadow: inset 0 0 0.313rem rgba(0, 0, 0, 0.2);
	background: rgba(0, 0, 0, 0.2);
}
.scroll {
	overflow: auto;
}
.scroll-x {
	overflow-x: auto;
}
.scroll-y {
	overflow-y: auto;
}
.nowrap {
	white-space: nowrap;
}
.flex {
	display: flex;
}
.fr {
	float: right;
}
.fl {
	float: left;
}
.tac {
	text-align: center;
}
.tar {
	text-align: right;
}
.pa1 {
	padding: 0.5em;
}
.pa2 {
	padding: 1em;
}
.pa3 {
	padding: 1.5em;
}
.pt2 {
	padding-top: 1em;
}
.mr1 {
	margin-right: 1em;
}
.ml1 {
	margin-left: 1em;
}
.lh1 {
	line-height: 1;
}
/* transition */
.it-fade-slide-down-enter-active,
.it-fade-slide-down-leave-active {
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
.it-fade-slide-down-enter,
.it-fade-slide-down-leave,
.it-fade-slide-down-leave-active {
	opacity: 0;
	transform: translateY(-32rem);
}
.it-fade-enter-active,
.it-fade-leave-active {
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
.it-fade-enter,
.it-fade-leave,
.it-fade-leave-active {
	opacity: 0;
}
/* mavon-markdown */
.v-note-wrapper.markdown-body {
	min-width: unset;
	min-height: unset;
	z-index: initial;
	.v-note-panel .v-note-show .v-show-content,
	.v-note-wrapper .v-note-panel .v-note-show .v-show-content-html {
		padding: 0;
	}
	blockquote,
	dl,
	ol,
	p,
	pre,
	table,
	ul {
		margin-bottom: 6px;
	}
}
/* vuetify样式 */
td.v-data-table__mobile-row {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 24px;
	height: inherit;
	.v-data-table__mobile-row__header {
		white-space: nowrap;
	}
}
.v-toolbar {
	.v-text-field__details {
		display: none;
	}
}

.v-data-table.v-data-table--dense {
	td,
	th {
		padding: 0 8px;
	}
	td {
		font-size: 12px;
	}
}
.flex > {
	.v-text-field {
		+ .v-btn {
			align-self: flex-start;
			margin-top: 13px;
		}
		&.v-input--dense + .v-btn {
			margin-top: 3px;
		}
	}
	.v-input--radio-group {
		+ .v-btn {
			align-self: flex-start;
			margin-top: 14px;
		}
		&.v-input--dense + .v-btn {
			margin-top: 17px;
		}
	}
}

.v-btn {
	text-transform: none;
}
.v-data-table tbody tr.v-data-table__expanded__content {
	box-shadow: unset;
}
